import request from '@/utils/request'

// 查询告警历史列表
export function listAlarmhistory(query) {
  return request({
    url: '/system/back/caseback/selectcaseback',
    method: 'get',
    params: query
  })
}

//查询报警详情
export function Alarmhistorydetails(query) {
  return request({
    url: '/system/back/caseback/selectcasebackInfo',
    method: 'get',
    params: query
  })
}

//处理完成和拒绝处理报警案件
export function RefuseAlarmhistorydetails(data) {
  return request({
    url: '/system/back/caseback/updateCaseBackStatus',
    method: 'post',
    data: data
  })
}

//输入警方备案号
export function EnterPoliceCaseId(data) {
  return request({
    url: '/system/back/caseback/updatePoliceCaseId',
    method: 'post',
    data: data
  })
}

//查询处理人员名单
export function SelectPoliceCaseId(query) {
  return request({
    url: '/system/back/studentback/selectCPinfo',
    method: 'get',
    params: query
  })
}

//调配处理
export function Confirmdeployment(data) {
  return request({
    url: '/system/back/caseback/updatedeployment',
    method: 'post',
    data: data
  })
}

// 回访接口
export function returnVisit(data) {
  return request({
    url: '/system/back/caseback/updateCaseReturnVisit',
    method: 'post',
    data: data
  })
}
